﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SaunaClient.Model.Network
{
    /// <summary>
    /// TCP/IP Gateway Interface
    /// </summary>
    /// <dates>
    /// 28/09/2011 - created by Chiaki Sato
    /// </dates>
    public interface ITcpDaoGateway
    {   
        // Methods

        /// <summary>
        /// Send login request to server
        /// </summary>
        /// <param name="sendData">Send data to server</param>
        /// <returns>Tcp Transfer Status</returns>
        TcpTransferStatus SendLoginRequestToServer(string userId, string password);

        /// <summary>
        /// Send downloaded log to server
        /// </summary>
        /// <param name="userId">User ID</param>
        /// <param name="fileName">File Name</param>
        /// <param name="datetime">Download date time</param>
        /// <returns>Tcp Transfer Status</returns>
        TcpTransferStatus SendDownloadLogToServer(string userId, string fileName, DateTime dateTime);

        // Accessor
        bool IsConnectedToServer();
    }
}
